<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>模板语法</title>
    <!--引入Vue-->
    <script type="text/javascript" src="./js/vue.js"></script>
</head>

<body>



    <div id="root">
        <!-- v-text指令:与插值语法相比:v-text会替换调节点中的内容，不支持结构的解析，-->
        <h1 v-text="message">周杰伦</h1>
    </div>
</body>
<script>
    const vm = new Vue({
        el: '#root',
        data: {
            message: '<h3>周杰伦</h3>',
        }
    });
</script>

</html>